package route

import (
	"core/repo"
	"framework/node"
	"game_flee/handler"
	"game_flee/logic"
)

func Register(r *repo.Manager) node.LogicHandler {
	handlers := make(node.LogicHandler)
	//大逃杀游戏
	fm := logic.NewCBigFleeKillManager(r)
	fleeHandler := handler.NewBigFleeKill(r, fm)
	handlers["fleeHandler.fleeRoomList"] = fleeHandler.FleeRoomList     //大逃杀房间列表
	handlers["fleeHandler.fleeBetting"] = fleeHandler.FleeBetting       //大逃杀下注
	handlers["fleeHandler.fleeChangeRoom"] = fleeHandler.FleeChangeRoom //大逃杀更换房间
	handlers["fleeHandler.fleeOut"] = fleeHandler.FleeOut               //大逃杀退出
	handlers["fleeHandler.fleeLog"] = fleeHandler.FleeLog               //大逃杀日志
	return handlers
}
